import java.awt.Graphics;


public class Game extends GameLoop{
	
	private static final long serialVersionUID = 1L;

	public void init() {
		setSize(854, 480);
		Thread th = new Thread(this);
		th.start();
		offscreen = createImage(854, 480);
		d = offscreen.getGraphics();
		addKeyListener(this);
	}
	
	public void paint(Graphics g) {
		d.clearRect(0, 0, 854, 480);
		d.drawOval(x, y, 50, 50);
		g.drawImage(offscreen, 0, 0, this);
	}
	
	public void update(Graphics g) {
		paint(g);
	}
}
